package myConst;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 消息协议的常量
 * @author kmChen
 * @Date 2023/11/5 13:07
 */
public class MQConst {

    /**
     * 消息协议的枚举
     * @author kmChen
     * @Date 2023/11/5 13:07
     */
    @Getter
    @AllArgsConstructor
    public enum MQEnum{

        GOODS_ORDER_CREATE("goods_order_create_topic","goods_order_create_producer","goods_order_create_consumer","商品订单创建消息"),
        // 测试的topic，由于tag的不同，要改变tag并且重启，否则无法接收到消息
        GOODS_ORDER_CREATE_2("goods_order_create_topic_2","goods_order_create_producer_2","goods_order_create_consumer_2","商品订单创建消息"),
        GOODS_ORDER_CREATE_DELAY("goods_order_create_topic_delay","goods_order_create_producer_delay","goods_order_create_consumer_delay","商品订单创建消息"),
        GOODS_ORDER_CREATE_LIST("goods_order_create_topic_list","goods_order_create_producer_list","goods_order_create_consumer_list","商品订单创建消息"),
        ;

        /**
         * 消息主题
         */
        private String topic;

        /**
         * 生产者组
         */
        private String producerGroup;

        /**
         * 消费者组
         */
        private String consumerGroup;

        /**
         * 消息描述
         */
        private String desc;
    }
}
